package com.abcd.kaixin.connect;

import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider;

import com.abcd.kaixin.api.Kaixin;
import com.abcd.kaixin.api.impl.KaixinTemplate;

public class KaixinServiceProvider extends AbstractOAuth2ServiceProvider<Kaixin> {

	public KaixinServiceProvider(String clientId, String clientSecret) {
		super(new KaixinOAuth2Template(clientId, clientSecret));
	}

	@Override
	public Kaixin getApi(String accessToken) {
		return new KaixinTemplate(accessToken);
	}

}
